package com.yjs.app.trade.web.controller.sys;


import java.io.IOException;
import java.sql.SQLException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yjs.app.trade.service.service.sys.QuestionService;
import com.yjs.app.trade.web.controller.base.BaseController;
import com.yjs.app.trade.web.controller.base.util.Result;
/**
 * 服务条款web
 *
 * @author fgdgf7d4gfd
 *
 */
@Controller
@RequestMapping(value = "/app/sys/serviceTerms")
public class ServiceTermsController extends BaseController{
	@Autowired
	private QuestionService questionService;
	
	@RequestMapping(value="/getTOSById",method=RequestMethod.GET)
	@ResponseBody
	public Object getTOSById() throws SQLException, IOException{
		Map<String, Object> map = questionService.findServer();
		return Result.csuccess(map.get("content"));
	}

}
